//
//  SpotViewCell.m
//  DigiOps
//
//  Created by app on 2018/7/26.
//  Copyright © 2018年 俞渊华. All rights reserved.
//

#import "SpotViewCell.h"

@implementation SpotViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.spotView.layer.borderColor=[UIColor lightGrayColor].CGColor;
    self.spotView.layer.borderWidth=0.3;
    [self.spotView setBackgroundColor:XMColor(241, 245, 247)];
    [self.spotContent mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.mas_equalTo(self.spotView);
        make.centerY.mas_equalTo(self.spotView);
        
    }];
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
+ (SpotViewCell *)cellWithTableView:(UITableView *)tableView {
    static NSString *ID = @"SpotViewCellID";
    
    SpotViewCell *cell = [tableView dequeueReusableCellWithIdentifier:ID];
    if (!cell) {
        cell = [[NSBundle mainBundle] loadNibNamed:@"SpotViewCell" owner:nil options:nil].lastObject;
        cell.backgroundColor=[UIColor whiteColor];
        
    }
    return cell;
}
@end
